#include "MoTalkWindows.h"
#include "MoTalkLogin.h"
#include "../Framework/GuiEvent.h"
#include "../Framework/Lcd.h"

struct all_control_point MoTalk_UI;

void MoTalkInitUI(void)
{
	switch(GetCurLCDSupport())
	{
	case ENUM_QVGA_SUPPORT:
		MoTalk_UI.login_ui.rc_logo.x = 0;
		MoTalk_UI.login_ui.rc_logo.y = 0;
		MoTalk_UI.login_ui.rc_logo.width = 240;
		MoTalk_UI.login_ui.rc_logo.height = 100;

		MoTalk_UI.login_ui.rc_ed_user.x = 10;
		MoTalk_UI.login_ui.rc_ed_user.y = 120;
		MoTalk_UI.login_ui.rc_ed_user.width = 220;
		MoTalk_UI.login_ui.rc_ed_user.height = 30;

		MoTalk_UI.login_ui.rc_ed_pass.x = 10;
		MoTalk_UI.login_ui.rc_ed_pass.y = 160;
		MoTalk_UI.login_ui.rc_ed_pass.width = 220;
		MoTalk_UI.login_ui.rc_ed_pass.height = 30;
		break;
	}
}


void MoTalkInitAllWinows(void)
{
	MoTalkInitUI();
}

void MoTalkFreeAllWinows(void)
{
	MoTalkFreeLoginWindow();
}

